<?php
namespace Components\Account\User\Wallet;

class Filter extends \Phalcon\Filter implements \Phalcon\FilterInterface {  
  public function checkFields($value) {
    return $this -> sanitize($value, 'int');
  }

  public function checkAmount($value) {
    return floatval($this -> sanitize($value, ['float', 'trim']));
  }
}
